package webone.javabean;

public class Users {
	private Integer id;
	private String userNike;
	private String lastName;
	private String password;
	private Integer age;
	private Double blance;
	private String email;
	public Users() {
		super();
	}
	
	public Users(String userNike, String lastName, String password, int age, String email) {
		super();
		this.userNike = userNike;
		this.lastName = lastName;
		this.password = password;
		this.age = age;
		this.email = email;
	}

	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public String getUserNike() {
		return userNike;
	}
	public void setUserNike(String userNike) {
		this.userNike = userNike;
	}
	public String getLastName() {
		return lastName;
	}
	public void setLastName(String lastName) {
		this.lastName = lastName;
	}
	public int getAge() {
		return age;
	}
	public void setAge(int age) {
		this.age = age;
	}
	public double getBlance() {
		return blance;
	}
	public void setBlance(double blance) {
		this.blance = blance;
	}
	public String getEmail() {
		return email;
	}
	public void setEmail(String email) {
		this.email = email;
	}
	
	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	@Override
	public String toString() {
		return "Users [id=" + id + ", userNike=" + userNike + ", lastName=" + lastName + ", age=" + age + ", blance="
				+ blance + ", email=" + email + "]";
	}
	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + id;
		result = prime * result + ((userNike == null) ? 0 : userNike.hashCode());
		return result;
	}
	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		Users other = (Users) obj;
		if (id != other.id)
			return false;
		if (userNike == null) {
			if (other.userNike != null)
				return false;
		} else if (!userNike.equals(other.userNike))
			return false;
		return true;
	}
	
	
}
